package com.lyj.mall.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lyj.mall.pojo.RolePermissions;
import com.lyj.mall.pojo.UserRoles;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author  lyj
 * @date  2019/12/17 23:47
 */
@Mapper
public interface UserRolesMapper extends BaseMapper<UserRoles> {
    int deleteByPrimaryKey(Integer id);

    @Override
    int insert(UserRoles record);

    int insertSelective(UserRoles record);

    UserRoles selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(UserRoles record);

    int updateByPrimaryKey(UserRoles record);

    List<UserRoles> findUserRolesByUsername(String userName);


}